/* eslint-disable */

import React from 'react';
import { getIconColor } from './helper';

const DEFAULT_STYLE = {
  display: 'block',
};

const IconRedian = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'rem'} height={size + 'rem'} style={style} {...rest}>
      <path
        d="M787.692308 157.538462a78.769231 78.769231 0 0 1 78.76923 78.76923v551.384616a78.769231 78.769231 0 0 1-78.76923 78.76923H236.307692a78.769231 78.769231 0 0 1-78.76923-78.76923V236.307692a78.769231 78.769231 0 0 1 78.76923-78.76923h551.384616z m0 31.507692H236.307692a47.261538 47.261538 0 0 0-47.02523 42.417231L189.046154 236.307692v551.384616a47.261538 47.261538 0 0 0 42.417231 47.02523L236.307692 834.953846h551.384616a47.261538 47.261538 0 0 0 47.02523-42.417231L834.953846 787.692308V236.307692a47.261538 47.261538 0 0 0-42.417231-47.02523L787.692308 189.046154z m-256.669539 270.296615c38.281846 22.055385 55.335385 66.56 38.596923 102.124308l-2.678154 5.001846-78.76923 136.428308c-20.952615 36.312615-70.656 45.607385-110.749539 22.449231-38.203077-22.055385-55.296-66.56-38.518154-102.084924l2.63877-5.04123 39.069538-67.66277a15.753846 15.753846 0 0 1 28.593231 12.839385l-1.339077 2.914462-39.069539 67.662769c-11.657846 20.204308-1.457231 49.191385 24.418462 64.118154 24.221538 13.981538 52.263385 9.885538 65.299692-7.325539l2.363077-3.623384 78.769231-136.428308c11.697231-20.204308 1.496615-49.191385-24.379077-64.118154a15.753846 15.753846 0 0 1 15.753846-27.254154z m98.461539-170.535384c38.281846 22.055385 55.335385 66.56 38.596923 102.084923l-2.678154 5.04123-39.778462 68.923077a15.753846 15.753846 0 0 1-28.59323-12.839384l1.299692-2.914462 39.778461-68.923077c11.697231-20.204308 1.496615-49.191385-24.379076-64.118154-24.221538-13.981538-52.263385-9.885538-65.299693 7.325539l-2.363077 3.623385-78.76923 136.428307c-11.697231 20.204308-1.496615 49.191385 24.339692 64.118154a15.753846 15.753846 0 1 1-15.753846 27.254154c-38.203077-22.055385-55.296-66.56-38.518154-102.124308l2.638769-5.001846 78.769231-136.428308c20.952615-36.312615 70.656-45.607385 110.710154-22.44923z"
        fill={getIconColor(color, 0, '#8a8a8a')}
      />
    </svg>
  );
};

IconRedian.defaultProps = {
  size: 18,
};

export default IconRedian;
